<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title><style>
     #big{
        width: 600px;
        height: 600px;
        border: 1px solid red;
     }
     #box{
        width: 100px;
        height: 100px;
        background-color: black;
        display:none;
     }

    </style>
</head>
<body>

   <div id="big">
         <div id="box"></div>
    </div>

</body>
<script>

    let obox = document.getElementById('box')
    let obig = document.getElementById('big')

    

    console.log(obox);

    console.log(obig);

   window.onclick = function(){
        obox.style.display = 'block';
    }
</script>
</html>